package br.com.linkcom.sined.geral.bean;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

import br.com.linkcom.neo.bean.annotation.DisplayName;
import br.com.linkcom.neo.validation.annotation.MaxLength;
import br.com.linkcom.neo.validation.annotation.Required;

@Entity
@SequenceGenerator(name="sq_passelivreveiculo", sequenceName="sq_passelivreveiculo")
public class Passelivreveiculo {

	protected Integer cdpasselivreveiculo;
	protected Date data;
	protected String placa;
	
	@Id
	@GeneratedValue(generator="sq_passelivreveiculo", strategy=GenerationType.AUTO)
	public Integer getCdpasselivreveiculo() {
		return cdpasselivreveiculo;
	}
	@Required
	@DisplayName("Data")
	public Date getData() {
		return data;
	}
	@Required
	@DisplayName("Placa")
	@MaxLength(8)
	public String getPlaca() {
		return placa;
	}
	
	public void setCdpasselivreveiculo(Integer cdpasselivreveiculo) {
		this.cdpasselivreveiculo = cdpasselivreveiculo;
	}
	public void setData(Date data) {
		this.data = data;
	}
	public void setPlaca(String placa) {
		this.placa = placa;
	}	
}